Skip to content

Comments

Add hostname to sysinfo#378

Merged
S1ro1 merged 8 commits intomainfrom
fix-sysinfo
Dec 14, 2025
Merged

Add hostname to sysinfo#378
S1ro1 merged 8 commits intomainfrom
fix-sysinfo

Conversation

@S1ro1
Copy link
Member

@S1ro1 S1ro1 commented Dec 14, 2025

basically what it says, can help us isolate faulty gpus/nodes

Copilot AI review requested due to automatic review settings December 14, 2025 22:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds hostname information to the system information captured during evaluation runs, which helps identify and isolate issues with specific GPUs or nodes. The implementation uses Python's socket.gethostname() to capture the machine's hostname and includes it in evaluation reports.

Key changes:

  • Adds hostname field to the SystemInfo dataclass
  • Captures hostname using socket.gethostname() in make_system_info()
  • Displays hostname in generated system information reports
  • Also adds device_count to report output (previously not displayed)
  • Includes an unrelated error message formatting change

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/libkernelbot/run_eval.py Adds socket import, hostname field to SystemInfo dataclass, and captures hostname in make_system_info()
src/libkernelbot/report.py Adds both device_count and hostname to system information output in generate_system_info()
src/libkernelbot/submission.py Fixes error message string concatenation by removing redundant f-string prefix, but introduces spacing issue

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Running on:
* GPU: `{system.gpu}`
* CPU: `{system.cpu}`
* Device count: `{system.device_count}`
Copy link

Copilot AI Dec 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The addition of device_count to the report output is not mentioned in the PR description and appears to be an undocumented change. Consider adding this to the PR description or splitting it into a separate PR if it's intended behavior. This also lacks test coverage - the test_generate_system_info test should be updated to verify device_count appears in the output.

Copilot uses AI. Check for mistakes.
* Runtime: `{system.runtime}`
* Platform: `{system.platform}`
* Torch: `{system.torch}`
* Hostname: `{system.hostname}`
Copy link

Copilot AI Dec 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new hostname field in the system information output lacks test coverage. The test_generate_system_info test in tests/test_report.py should be updated to include hostname in the sample_system_info fixture and verify it appears in the generated output.

Copilot uses AI. Check for mistakes.
S1ro1 and others added 5 commits December 14, 2025 23:21
@S1ro1 S1ro1 merged commit d56d386 into main Dec 14, 2025
3 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants